package com.example.travel_front.Api;

import com.example.travel_front.Model.WeatherResult;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface Api {
    public static final String SERVER = "https://restapi.amap.com";
    public static final String KEY = "1022f4d54d537eb16ec2aeea92afe309";

    /**
     * 获取天气
     */
    @GET("/v3/weather/weatherInfo")
    Call<WeatherResult> search(@Query("key") String key, @Query("city") String city, @Query("extensions") String extensions);

}
